package cn.le.bean.util;

import cn.le.bean.vo.NettyMsg;

public final class ResponseFactory {

    private ResponseFactory(){}

    public static Response ok(){
        return new Response(200,"ok");
    }

    public static NettyMsg nettyOk(String id){
        return new NettyMsg(id,200,"ok");
    }

    public static Response refuse(){
        return new Response(401,"no");
    }

    public static NettyMsg nettyRefuse(String id){
        return new NettyMsg(id,401,"no");
    }
}
